package cn.ywang.pattern.adapter.passport.adapter;

import cn.ywang.pattern.adapter.ResultMsg;

/**
 * @author BeatificWang
 * @date 2019/3/20 0:02
 */
public class LoginForTokenAdapter implements LoginAdapter {
	/**
	 * 钩子方法，用于对代码逻辑进行微调
	 *
	 * @param adapter
	 * @return
	 */
	@Override
	public boolean support(Object adapter) {
		return adapter instanceof LoginForTokenAdapter;
	}

	/**
	 * 注册
	 *
	 * @param id
	 * @param adapter
	 * @return
	 */
	@Override
	public ResultMsg register(String id, Object adapter) {
		return null;
	}

	/**
	 * 登录
	 *
	 * @param id
	 * @param adapter
	 * @return
	 */
	@Override
	public ResultMsg login(String id, Object adapter) {
		return null;
	}
}
